package com.ququ.syb.account.dao.impl;

import com.ququ.syb.account.dao.AccountInfoDao;
import com.ququ.syb.common.pojo.AccountInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class AccountInfoDaoImpl extends BaseDaoImpl<AccountInfo> implements AccountInfoDao {
    @Override
    public AccountInfo getAccountInfo(String accountid) {
        AccountInfo accountInfo= new AccountInfo();
        accountInfo.setAccountid(accountid);
        return getEntity(accountInfo);
    }

    @Override
    public List<AccountInfo> listAccountInfo(AccountInfo accountInfo) {
        return getList(accountInfo);
    }
}
